import request from '@/util/request'

export function commodityAll(page, pageSize, key, orderBy, type) {
    return request({
        url: '/commodity/all',
        method: 'get',
        params: {
            page: page,
            pageSize: pageSize,
            key: key,
            orderBy: orderBy,
            type: type
        }
    })
}

export function commoditySelectId(id) {
    return request({
        url: '/commodity/id',
        method: 'get',
        params: {
            id: id
        }
    })
}